package com.jackson.framerocketmq.producer;

/*
 * Author: JacksonCoder
 * FileName: IndexController
 * Version: 1.0.0
 * Date: 2025/4/18
 */

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    @GetMapping("/send")
    public void send(){
        rocketMQTemplate.convertAndSend("test1", "Hello, RocketMQ!");
    }

}
